package models

import "time"

type DayInfo struct {
	Id          uint       `gorm:"primary_key;auto_increment" json:"id"`
	ShopId      int        `gorm:"default:0;comment:项目" json:"shop_id"`
	Title       string     `gorm:"size:50;not null;default:'';comment:标题" json:"title"`
	Order       int        `gorm:"not null;comment:排序(小-大)" json:"order"`
	Image       string     `gorm:"size:100;not null;default:'';comment:图片" json:"image"`
	HTML        string     `gorm:"type:text;comment:介绍" json:"html"`
	CreatedTime *time.Time `gorm:"default:null;comment:创建时间" json:"created_time"`
	UpdatedTime *time.Time `gorm:"default:null;comment:更新时间" json:"updated_time"`
}

func (DayInfo) TableName() string {
	return "fa_day_info"
}
